package cn.wd.user.controller;


import cn.wd.user.vo.JsonResult;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class AvatarUploadController {

    @RequestMapping("/avatarUpload")
    public JsonResult<?> avatarUpload(@RequestParam(value="avatarPic", required=false) MultipartFile avatar, HttpServletRequest req) {
        System.out.println(avatar);
        System.out.println(req);
        return JsonResult.success();
    }
}
